[INFO] cloning repository https://github.com/AlirezaRahi/Collision-Detection-Avoidance-System
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlirezaRahi/Collision-Detection-Avoidance-System" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlirezaRahi%2FCollision-Detection-Avoidance-System", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlirezaRahi%2FCollision-Detection-Avoidance-System'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 223c5b0874a5a32c4cd769c7e08169a1b6bb4922
[INFO] fixing AlirezaRahi/Collision-Detection-Avoidance-System against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlirezaRahi%2FCollision-Detection-Avoidance-System" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AlirezaRahi/Collision-Detection-Avoidance-System
[INFO] finished tweaking git repo https://github.com/AlirezaRahi/Collision-Detection-Avoidance-System
[INFO] tweaked toml for git repo https://github.com/AlirezaRahi/Collision-Detection-Avoidance-System written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AlirezaRahi/Collision-Detection-Avoidance-System on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AlirezaRahi/Collision-Detection-Avoidance-System already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 914eefb888c7bc5feea4291d83d9240f13805c2f089032135fca36e5332d96cd
[INFO] running `Command { std: "docker" "start" "914eefb888c7bc5feea4291d83d9240f13805c2f089032135fca36e5332d96cd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "914eefb888c7bc5feea4291d83d9240f13805c2f089032135fca36e5332d96cd" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "914eefb888c7bc5feea4291d83d9240f13805c2f089032135fca36e5332d96cd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "914eefb888c7bc5feea4291d83d9240f13805c2f089032135fca36e5332d96cd" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking hitDiagnosisSystem v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `ndarray`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use ndarray::{Array2, s};
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `ndarray`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `ndarray`, use `cargo add ndarray` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f32::consts::PI`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::f32::consts::PI;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `hitDiagnosisSystem`
[INFO] [stdout]    --> src/main.rs:497:2
[INFO] [stdout]     |
[INFO] [stdout] 497 | }
[INFO] [stdout]     |  ^ consider adding a `main` function to `src/main.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `ndarray`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use ndarray::{Array2, s};
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `ndarray`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `ndarray`, use `cargo add ndarray` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `approx`
[INFO] [stdout]    --> src/main.rs:323:9
[INFO] [stdout]     |
[INFO] [stdout] 323 |     use approx::assert_relative_eq;
[INFO] [stdout]     |         ^^^^^^ use of unresolved module or unlinked crate `approx`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `approx`, use `cargo add approx` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f32::consts::PI`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::f32::consts::PI;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `usize: Neg` is not satisfied
[INFO] [stdout]    --> src/main.rs:254:27
[INFO] [stdout]     |
[INFO] [stdout] 254 |                 for di in -half_window..=half_window {
[INFO] [stdout]     |                           ^^^^^^^^^^^^ the trait `Neg` is not implemented for `usize`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the following other types implement trait `Neg`:
[INFO] [stdout]               &f128
[INFO] [stdout]               &f16
[INFO] [stdout]               &f32
[INFO] [stdout]               &f64
[INFO] [stdout]               &i128
[INFO] [stdout]               &i16
[INFO] [stdout]               &i32
[INFO] [stdout]               &i64
[INFO] [stdout]             and 12 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/main.rs:111:14
[INFO] [stdout]     |
[INFO] [stdout] 111 |         for (i, &depth) in min_depths.iter().enumerate() {
[INFO] [stdout]     |              ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0601.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hitDiagnosisSystem` (bin "hitDiagnosisSystem") due to 3 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0277]: the trait bound `usize: Neg` is not satisfied
[INFO] [stdout]    --> src/main.rs:254:27
[INFO] [stdout]     |
[INFO] [stdout] 254 |                 for di in -half_window..=half_window {
[INFO] [stdout]     |                           ^^^^^^^^^^^^ the trait `Neg` is not implemented for `usize`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the following other types implement trait `Neg`:
[INFO] [stdout]               &f128
[INFO] [stdout]               &f16
[INFO] [stdout]               &f32
[INFO] [stdout]               &f64
[INFO] [stdout]               &i128
[INFO] [stdout]               &i16
[INFO] [stdout]               &i32
[INFO] [stdout]               &i64
[INFO] [stdout]             and 12 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `compute_disparity_simple` found for struct `CollisionAvoidance` in the current scope
[INFO] [stdout]    --> src/main.rs:432:35
[INFO] [stdout]     |
[INFO] [stdout]  35 | pub struct CollisionAvoidance {
[INFO] [stdout]     | ----------------------------- method `compute_disparity_simple` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 432 |         let disparity = avoidance.compute_disparity_simple(
[INFO] [stdout]     |                         ----------^^^^^^^^^^^^^^^^^^^^^^^^ this is an associated function, not a method
[INFO] [stdout]     |
[INFO] [stdout]     = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
[INFO] [stdout] note: the candidate is defined in an impl for the type `CollisionAvoidance`
[INFO] [stdout]    --> src/main.rs:180:5
[INFO] [stdout]     |
[INFO] [stdout] 180 | /     pub fn compute_disparity_simple(
[INFO] [stdout] 181 | |         left_image: &Array2<f32>,
[INFO] [stdout] 182 | |         right_image: &Array2<f32>,
[INFO] [stdout] 183 | |         max_disparity: i32,
[INFO] [stdout] 184 | |         window_size: i32
[INFO] [stdout] 185 | |     ) -> Array2<f32> {
[INFO] [stdout]     | |____________________^
[INFO] [stdout] help: use associated function syntax instead
[INFO] [stdout]     |
[INFO] [stdout] 432 -         let disparity = avoidance.compute_disparity_simple(
[INFO] [stdout] 433 -             &left_image, 
[INFO] [stdout] 434 -             &right_image, 
[INFO] [stdout] 435 -             20, // max_disparity
[INFO] [stdout] 436 -             3   // window_size
[INFO] [stdout] 437 -         );
[INFO] [stdout] 432 +         let disparity = CollisionAvoidance::compute_disparity_simple(&left_image, &right_image, 20, 3);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `compute_depth_from_disparity` found for struct `CollisionAvoidance` in the current scope
[INFO] [stdout]    --> src/main.rs:457:35
[INFO] [stdout]     |
[INFO] [stdout]  35 | pub struct CollisionAvoidance {
[INFO] [stdout]     | ----------------------------- method `compute_depth_from_disparity` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 457 |         let depth_map = avoidance.compute_depth_from_disparity(
[INFO] [stdout]     |                         ----------^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is an associated function, not a method
[INFO] [stdout]     |
[INFO] [stdout]     = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
[INFO] [stdout] note: the candidate is defined in an impl for the type `CollisionAvoidance`
[INFO] [stdout]    --> src/main.rs:156:5
[INFO] [stdout]     |
[INFO] [stdout] 156 | /     pub fn compute_depth_from_disparity(
[INFO] [stdout] 157 | |         disparity_map: &Array2<f32>,
[INFO] [stdout] 158 | |         baseline: f32,
[INFO] [stdout] 159 | |         focal_length: f32
[INFO] [stdout] 160 | |     ) -> Array2<f32> {
[INFO] [stdout]     | |____________________^
[INFO] [stdout] help: use associated function syntax instead
[INFO] [stdout]     |
[INFO] [stdout] 457 -         let depth_map = avoidance.compute_depth_from_disparity(
[INFO] [stdout] 458 -             &disparity_map,
[INFO] [stdout] 459 -             baseline,
[INFO] [stdout] 460 -             focal_length
[INFO] [stdout] 461 -         );
[INFO] [stdout] 457 +         let depth_map = CollisionAvoidance::compute_depth_from_disparity(&disparity_map, baseline, focal_length);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/main.rs:111:14
[INFO] [stdout]     |
[INFO] [stdout] 111 |         for (i, &depth) in min_depths.iter().enumerate() {
[INFO] [stdout]     |              ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hitDiagnosisSystem` (bin "hitDiagnosisSystem" test) due to 5 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "914eefb888c7bc5feea4291d83d9240f13805c2f089032135fca36e5332d96cd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "914eefb888c7bc5feea4291d83d9240f13805c2f089032135fca36e5332d96cd", kill_on_drop: false }`
[INFO] [stdout] 914eefb888c7bc5feea4291d83d9240f13805c2f089032135fca36e5332d96cd
